import QtQuick
import QtQuick.Layouts
import QtMultimedia
import QtQuick.Controls

import SnapyPairs

Window {
    id: app_window
    width: 930
    height: 480
    minimumWidth: width
    minimumHeight: height
    maximumWidth: width
    maximumHeight: height
    visible: true
    title: qsTr("snapy-pairs")

    color: '#10968F'

    function create_menu() {
        var menu_component = Qt.createComponent('Menu.qml')
        menu_component.createObject(app_window)
    }

    function create_game(difty) {
        var game_component = Qt.createComponent('Game.qml')
        game_component.createObject(app_window, {difficulty: difty})
    }

    Component.onCompleted: { create_menu() }
}
